package com.wisezone.permission.service;

import java.util.List;
import java.util.Map;

import com.wisezone.common.exception.WzDaoException;
import com.wisezone.common.exception.WzServiceException;
import com.wisezone.common.exception.WzWebException;
import com.wisezone.common.service.BaseService;
import com.wisezone.permission.bean.entity.WzRescEntity;
import com.wisezone.permission.bean.form.WzRescForm;

/**
 * 
 *资源; InnoDB free: 24576 kB
 * 
 * @author create by create date 2010-07-29 14:44:44 update date 2010-07-29
 *         14:44:44
 * 
 */
public interface WzRescService extends BaseService {

	/**
	 * 获得父资源
	 * 
	 * @return
	 * @throws WzWebException
	 */
	public List<WzRescEntity> getParentList() throws WzWebException;

	/**
	 * 获得菜单资源链接
	 * 
	 * @return
	 * @throws WzWebException
	 */
	public List<WzRescEntity> getMenuResList() throws WzWebException;

	/**
	 * 获得资源列表
	 * 
	 * @param name
	 *            菜单名称
	 * @return
	 * @throws WzServiceException
	 */
	public List<WzRescForm> getRescList(String name) throws WzServiceException;

	/**
	 * 获得资源id和名称的map
	 * 
	 * @param id
	 * @return
	 */
	public Map<String, String> getMapByRoleId(Long id)
			throws WzServiceException;

}